package com.prothink.controller;

import com.prothink.entity.JsMicrocircle;
import com.prothink.service.CommentDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @BelongsProject: siyun2
 * @BelongsPackage: com.prothink.controller
 * @Author: Jin
 * @Description: TODO
 */
@Controller
@RequestMapping("/CommentDetails")
@CrossOrigin
public class CommentDetailsController {
    @Autowired
    private CommentDetailsService commentDetailsService;
    @ResponseBody
    @GetMapping("/getCommentDetails")
    public List getCommentDetails(JsMicrocircle jsMicrocircle){
        System.out.println(jsMicrocircle);
        List commentDetailsDao = commentDetailsService.getCommentDetailsDao(jsMicrocircle);
        System.out.println(commentDetailsDao);
        return commentDetailsDao;
    }
}
